package org.dromara.manu.domain.bo;

import org.dromara.manu.domain.ManuMaterialCharaRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 物料特征值业务对象 manu_material_chara_record
 *
 * @author Bin Liu
 * @date 2024-11-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ManuMaterialCharaRecord.class, reverseConvertGenerate = false)
public class ManuMaterialCharaRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 物料id
     */
    @NotNull(message = "物料id不能为空", groups = { AddGroup.class })
    private Long materialId;

    /**
     * 特征模板id
     */
    @NotNull(message = "特征模板id不能为空", groups = { AddGroup.class })
    private Long tempId;

    /**
     * 数字型结果
     */
    private Double dataFloat;

    /**
     * 附件型结果
     */
    private Long dataFile;

    /**
     * 布尔型结果
     */
    private Boolean dataBoolean;

    /**
     * 字符串型结果
     */
    private String dataString;


}
